Skip to content

test(ffe): enable PHP agentless EVP egress coverage - #8476

Draft
leoromanovsky wants to merge 2 commits into
leo/php-agentless-activation-20261112from
leo/php-evp-system-tests-20261112
Draft

leoromanovsky wants to merge 2 commits into
leo/php-agentless-activation-20261112from
leo/php-evp-system-tests-20261112

Conversation

@leoromanovsky

Copy link
Copy Markdown
Contributor

Motivation

PHP customers using agentless flags also need exposure and evaluation-count delivery when no Datadog Agent is present. Activate the shared egress contracts for dd-trace-php #4489. This PR is stacked on #8475; merge the PHP implementation before relying on its development-version gate.

Changes

Enable exposures and evaluation counts in both the direct-intake and serverless-init scenarios from v1.28.0-dev, preserving the Laravel/Symfony test-app exclusions. Replace the file-wide evaluation-test exclusion with sibling-class exclusions so the two enabled classes actually run and unsupported cases keep their gates.

For the direct scenario, launch Apache or PHP-FPM in the foreground so the existing live topology assertion proves the application server owns PID 1 and no Agent or init wrapper is present. Extend the server-name contract with PHP and add controls rejecting shell, tail, and similarly named wrappers. The separate shutdown test remains disabled because the PHP app does not emit its required server-close marker.

Local Apache/PHP 8.2.35 validation used PHP 7aecaffffac9:

Scenario Enabled results
FEATURE_FLAGGING_AND_EXPERIMENTATION_AGENTLESS_DIRECT 2 passed: exposures and evaluation counts
FEATURE_FLAGGING_AND_EXPERIMENTATION_AGENTLESS_SERVERLESS 2 passed: exposures and evaluation counts
FEATURE_FLAGGING_AND_EXPERIMENTATION_AGENTLESS_EXPLICIT 1 passed: CDN configuration

The installed extension SHA-256 was c86d733862228766c237d4df1e5e9ba61b71955ad1c03177c3b6d529d6fd4981. The local PHP build reports 1.27.0, so these runs used the supported -F override; 60 separate manifest checks verified effective activation across old/development versions and Apache, ZTS, FPM, Laravel, and Symfony variants. All unsupported evaluation classes remain gated. The 53 FFE harness tests and ./format.sh passed. These are local controlled-service results; PHP-FPM and staging were not exercised.

Workflow

  1. ⚠️ Create your PR as draft ⚠️
  2. Work on you PR until the CI passes
  3. Mark it as ready for review
    • Tests, manifest, weblog are modified -> you'll need a review from system-tests-reviewers: ask to one of youre co-worker familiar with the tested feature.
    • Framework is modified, or non obvious usage of it -> get a review from system-tests-core (slack)

🚀 Once your PR is reviewed and the CI green, you can merge it!

🛟 #apm-shared-testing 🛟

@github-actions

Copy link
Copy Markdown
Contributor

CODEOWNERS have been resolved as:

manifests/php.yml                                                       @DataDog/system-tests-reviewers
tests/ffe/utils/evp.py                                                  @DataDog/feature-flagging-and-experimentation-sdk
tests/test_the_test/test_ffe_tests.py                                   @DataDog/feature-flagging-and-experimentation-sdk
utils/_context/_scenarios/agentless_endtoend.py                         @DataDog/system-tests-core
utils/build/docker/php/apache-mod/entrypoint.sh                         @DataDog/system-tests-reviewers
utils/build/docker/php/php-fpm/entrypoint.sh                            @DataDog/system-tests-reviewers

@datadog-datadog-us1-prod

datadog-datadog-us1-prod Bot commented Nov 12, 2026 •

Copy link
Copy Markdown

Pipelines

✨ Unblock PR with BitsAI

❌ Errors

Your PR has failed checks. Please review the issues below and take necessary action before merging.

🚦 4 Pipeline jobs failed

DDCI - DataDog/system-tests | build_base_images — 🔧 Needs a code fix, caused by this PR

View more details · View in DDCI

DataDog/system-tests | build_base_images — 🔧 Needs a code fix, caused by this PR

View more details · View in GitLab

Testing the test | Test the test — 🔧 Needs a code fix, caused by this PR

View more details · View in GitHub Actions

View all 4 failed jobs.

Useful? React with 👍 / 👎

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 7f153aa | Docs | View more details | Give us feedback!

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant